﻿

@{
    Layout = null;


   
}
@model  List<YQGL.Model.V_SB_YSBXX>
<!DOCTYPE html>

<html>

<head>
    <meta name="viewport" content="width=device-width" />
    <title>企业报表</title>

    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css" />
    <!-- jQuery UI theme -->
    <link rel="stylesheet" href="/lib/jquery-ui/css/Aristo/Aristo.css" />
    <!-- tooltips-->
    <link rel="stylesheet" href="/lib/jBreadcrumbs/css/BreadCrumb.css" />
    <!-- tooltips-->
    <link rel="stylesheet" href="/lib/qtip2/jquery.qtip.min.css" />
    <!-- colorbox -->
    <link rel="stylesheet" href="/lib/colorbox/colorbox.css" />
    <!-- code prettify -->
    <link rel="stylesheet" href="/lib/google-code-prettify/prettify.css" />
    <!-- sticky notifications -->
    <link rel="stylesheet" href="/lib/sticky/sticky.css" />
    <!-- aditional icons -->
    <link rel="stylesheet" href="/img/splashy/splashy.css" />
    <!-- flags -->
    <link rel="stylesheet" href="/img/flags/flags.css" />
    <!-- datatables -->
    <link rel="stylesheet" href="/lib/datatables/extras/TableTools/media/css/TableTools.css">

    <!-- calendar -->
    <link rel="stylesheet" href="/lib/fullcalendar/fullcalendar_gebo.css" />

    <!-- main styles -->
    <link rel="stylesheet" href="/css/style.css" />
    <!-- theme color-->
    <link rel="stylesheet" href="/css/blue.css" id="link_theme" />

    <!--             <link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'> -->
    <!-- favicon -->
    <link rel="shortcut icon" href="favicon.ico" />

    <!--[if lte IE 8]>
        <link rel="stylesheet" href="css/ie.css" />
    <![endif]-->
    <!--[if lt IE 9]>
        <script src="js/ie/html5.js"></script>
        <script src="js/ie/respond.min.js"></script>
        <script src="/lib/flot/excanvas.min.js"></script>
    <![endif]-->
    <style type="text/css">
        table.table-bordered th {
            text-align: center;
        }

        table.table-bordered td {
            text-align: center;
        }
    </style>

</head>

<body style="overflow-x:hidden">

    <div style="max-width:1000px;margin-left:auto;margin-right:auto">
        <div class="row ">

            <div class="col-sm-12 col-md-12">
                <div class=" panel panel-success">


                    <div class=" panel-heading ">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>

                                <td style="width:90px;text-align:center;">
                                    
                                        查询年度：
                                    
                                </td>

                                <td style="width:140px;vertical-align:top;">
                                    @Html.DropDownList("selYearList", ViewData["YearList"] as List<SelectListItem>, new { @class = "form-control pull-right", @style = "width:130px;height:35px;", @onchange = "ValueChange(this)" })


                                </td>
                                <td style="width:700px;">


                                    <span class="text-primary pull-right">填报单位:万元</span>
                                </td>
                            </tr>
                        </table>

                    </div>
                    <div class="panel-body tabbable tabbable-bordered">
                        <div class="row">



                            <div class="col-sm-12 col-md-12">
                                <div class="alert alert-info" role="alert">


                                    <strong>企业名称：</strong>@ViewData["Nsrmc"]
                                     <br />
                                    <strong> 企业分类：</strong>@ViewData["DLMC"]  &nbsp;,
                                    @ViewData["LXMC"]  <span class="text-primary pull-right">当前登录用户：@ViewData["LoginID"]</span>



                                </div>
                                <table class="table table-striped table-bordered dTableR" style="table-layout: fixed;">
                                    <thead>
                                        <tr>
                                            <th align="center" width="10%">
                                                操作
                                            </th>
                                            <th align="center" width="15%">
                                                月份
                                            </th>
                                            <th align="center" width="40%">
                                                填报项目
                                            </th>
                                            <th align="center" width="20%">
                                                提交时间
                                            </th>
                                            <th align="center" width="15%">
                                                状态
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach (YQGL.Model.V_SB_YSBXX g in Model)
                                        {
                                            <tr>
                                                <td align="center">
                                                    @if (g.SBZT == "2" | g.SBZT == "0" | g.SBZT == "1")
                                                    {
                                                        <a href="javascript:;" onclick="Edit('@g.SSND.Trim()','@g.SSYF.Trim()')" class="tablelink">编辑</a>

                                                    }
                                                    else
                                                    {


                                                        <a href="javascript:;" onclick="Look('@g.SSND.Trim()','@g.SSYF.Trim()')" class="tablelink">查看</a>


                                                    }
                                                </td>
                                                <td align="center">
                                                    @g.SSYF.TrimStart('0') 月
                                                </td>

                                                <td align="center">
                                                    @g.QYBBInfo
                                                </td>
                                                <td align="center">
                                                    @(g.Lrrq.HasValue ? g.Lrrq.Value.ToString("yyyy年MM月dd日") : "")

                                                </td>
                                                <td align="center">
                                                    @g.ZTDMStr
                                                </td>
                                            </tr>
                                        }
                                    </tbody>
                                </table>

                            </div>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        <script src="/Scripts/jquery.min.js"></script>
        <script src="/Scripts/jquery-migrate.min.js"></script>
        <script src="/lib/jquery-ui/jquery-ui-1.10.0.custom.min.js"></script>
        <!-- touch events for jquery ui-->
        <script src="/Scripts/forms/jquery.ui.touch-punch.min.js"></script>
        <!-- easing plugin -->
        <script src="/Scripts/jquery.easing.1.3.min.js"></script>
        <!-- smart resize event -->
        <script src="/Scripts/jquery.debouncedresize.min.js"></script>
        <!-- js cookie plugin -->
        <script src="/Scripts/jquery_cookie_min.js"></script>
        <!-- main bootstrap js -->
        <script src="/bootstrap/js/bootstrap.min.js"></script>
        <!-- bootstrap plugins -->
        <script src="/Scripts/bootstrap.plugins.min.js"></script>
        <!-- typeahead -->
        <script src="/lib/typeahead/typeahead.min.js"></script>
        <!-- code prettifier -->
        <script src="/lib/google-code-prettify/prettify.min.js"></script>
        <!-- sticky messages -->
        <script src="/lib/sticky/sticky.min.js"></script>
        <!-- tooltips -->
        <script src="/lib/qtip2/jquery.qtip.min.js"></script>
        <!-- lightbox -->
        <script src="/lib/colorbox/jquery.colorbox.min.js"></script>
        <!-- jBreadcrumbs -->
        <script src="/lib/jBreadcrumbs/js/jquery.jBreadCrumb.1.1.min.js"></script>
        <!-- hidden elements width/height -->
        <script src="/Scripts/jquery.actual.min.js"></script>
        <!-- custom scrollbar -->
        <script src="/lib/slimScroll/jquery.slimscroll.js"></script>
        <!-- fix for ios orientation change -->
        <script src="/Scripts/ios-orientationchange-fix.js"></script>
        <!-- to top -->
        <script src="/lib/UItoTop/jquery.ui.totop.min.js"></script>
        <!-- mobile nav -->
        <script src="/Scripts/selectNav.js"></script>
        <!-- common functions -->
        <!--	<script src="js/gebo_common.js"></script>-->

        <script src="/lib/datatables/jquery.dataTables.min.js"></script>
        <script src="/lib/datatables/extras/Scroller/media/js/dataTables.scroller.min.js"></script>
        <!-- datatable table tools -->
        <script src="/lib/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
        <script src="/lib/datatables/extras/TableTools/media/js/ZeroClipboard.js"></script>
        <!-- datatables bootstrap integration -->
        <script src="/lib/datatables/jquery.dataTables.bootstrap.min.js"></script>

        <!-- datatable functions -->
        <script src="/Scripts/gebo_datatables.js"></script>



        <script type="text/javascript">

            $(document).ready(function () {


            })

            function ValueChange(obj) {

                var selectProp = obj.value;

                if (typeof (selectProp) != "undefined" & selectProp != "") {

                    window.location.href = '@Url.Content("~/QYBB/?Year=")' + selectProp;

                }
            }
            function Edit(f,m) {
                //var selYearList=$("#selYearList").val();
                window.location.href =  '@Url.Content("~/QYBB/QYBBPUb?Year=")' +f+"&Month="+m;
             
              
            }

            function Look(f, m) {
                window.location.href = '@Url.Content("~/QYBB/QYBBLook?Year=")' + f + "&Month=" + m;
            }

            function iframeAutoFit() {
                var ex;
                try {
                    if (window != parent) {
                        var a = parent.document.getElementsByTagName("iframe");
                        for (var i = 0; i < a.length; i++) {
                            if (a[i].contentWindow == window) {
                                var h1 = 0,
                                    h2 = 0;
                                if (document.documentElement && document.documentElement.scrollHeight) {
                                    h1 = document.documentElement.scrollHeight;
                                }
                                if (document.body) h2 = document.body.scrollHeight;
                                var h = Math.max(h1, h2);
                                if (window.ActiveXObject) {
                                    h += 4;
                                } else {
                                    h += 4;
                                }
                                a[i].style.height = h + "px";
                                window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                            }
                        }
                    }
                } catch (ex) { }
            }
        </script>

</body>

</html>